<template>
  <div class="common-layout">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-container>
          <el-main>Main</el-main>
          <el-footer>Footer</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
// import { ref } from "vue";

// 定义响应式数据
</script>

<style lang="scss" scoped>
.common-layout {
  // 容器样式
  width: 100%;
  min-height: 100vh;
  // 弹性布局
  display: flex;
  flex-direction: column;
  /* scss深度选择器写法 */
  // :deep(.el-container) {
  //   /* 样式规则 */
  //   height: 100%;
  // }
  /* 可以为各部分添加背景色以便观察布局效果 */
  .el-header {
    background-color: #b3c0d1;
    --el-header-height: 68px;
  }
  .el-aside {
    background-color: #d3dce6;
  }
  .el-main {
    background-color: #e9eef3;
  }
  .el-footer {
    background-color: #b3c0d1;
  }
}
</style>
